﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.ProductProcess
{
    public interface IProProcess
    {
        public Task<IEnumerable<ProProcess>> GetAllAsync();

        public Task<IEnumerable<ProProcess>> GetAsync(int PageIndex, int pageSize, string ProcessCode, string ProcessName, string EnableFlag);

        public Task<int> GetCountAsync(string ProcessCode, string ProcessName, string EnableFlag);

        public Task<bool> UpdateAsync(ProProcess model);

        public Task<bool> AddAsync(ProProcess model);

        public Task<bool> DeleteAsync(int[]  Ids);

        public Task<bool> DeleteAsync(int Id);
    }
}
